package cn.com.chengq.partters.builder.b02;

/**
 * ProjectManager扮演指挥者的角色
 */
public class ProjectManager {
    private Decorator builder;

    public ProjectManager(Decorator builder) {
        this.builder = builder;
    }

    // 产品的构建和组装方法
    public Parlour decorate() {
        builder.buildWall();
        builder.buildTv();
        builder.buildSofa();
        return builder.getResult();
    }
}
